import 'package:flutter/material.dart';
import 'package:fluttertoast/fluttertoast.dart';

class PPToast {
  PPToast.show(String? msg, {bool? showLongTime}) {
    Fluttertoast.showToast(
        msg: msg ??= "",
        toastLength: (showLongTime != null && showLongTime)
            ? Toast.LENGTH_LONG
            : Toast.LENGTH_SHORT,
        gravity: ToastGravity.CENTER,
        backgroundColor: Colors.black.withOpacity(0.8),
        textColor: Colors.white);
  }
}
